programming4us
           
 
 
Windows Server

Windows Server 2008 : Using dnscmd - Retrieving DNS Information, Exporting DNS Data, Forcing Zone Transfers

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
7/7/2013 8:58:43 PM

1. Retrieving DNS Information

dnscmd includes several commands you can use to retrieve information about the server, zones, and records. The following table shows these commands.

dnscmd Commands to Retrieve InformationComments
Retrieve information on the DNS server.
/info
dnscmd [server] /info
c:\>dnscmd /info
c:\>dnscmd dc1 /info

Retrieves information on the DNS server including server-level properties. You can include the name of a remote server by adding the name of the server, or you can execute it on a local DNS server and omit the server name.
List zones.
/enumzones
dnscmd [server] /enumzones
c:\>dnscmd /enumzones
c:\>dnscmd dc1 /enumzones

You can enumerate (or list) zones on a DNS server with the /enumzones switch.
Retrieve performance statistics.
/statistics
dnscmd [server] /statistics
c:\>dnscmd /statistics
c:\>dnscmd dc1 /statistics

The /statistics switch shows performance statistics for the DNS server.
Retrieve information on a zone.
/zoneinfo
dnscmd /zoneinfo zonefqdn
filename
c:\>dnscmd /zoneinfo
pearson.pub

The /zoneinfo switch retrieves information on a specific zone, including the properties of the zone. Much of this information is coded. For example, a zone type of 1 indicates it is a primary zone and a 1 for DS integrated indicates it is Active Directory integrated (ADI). Figure 5-1 shows the output of this command.
List records in zone.
/enumrecords
dnscmd server /enumrecords
zonename zonenode
c:\>dnscmd dc1 /enumrecords
pearson.pub @

You can list all records in a zone with the /enumrecords switch. The @ symbol specifies that all the records from the zone root are listed.

Tip

The output can be quite extensive. You can redirect the output to a text file with the redirect symbol (>) and the name of a file like this:

dnscmd dc1 /enumrecords

pearson.pub @ > dns.txt



Figure 1. Retrieving DNS zone information with dnscmd

2. Exporting DNS Data

You might occasionally want to create text files that include all the data from a zone. You can create them with the /zoneexport switch.

Using /zoneexportComments
/zonexport
dnscmd /zoneexport zonefqdn
filename
c:\>dnscmd /zoneexport
pearson.pub pearsonzone.txt

Creates copies of the zone data as a file. The file can then be kept for archiving purposes or shared with other IT professionals (such as auditing and security personnel).

Note

The exported file is created in the windows\system32\dns folder by default.

3. Forcing Zone Transfers

Zone transfers occur on a regular schedule. When primary and secondary DNS servers are used, zone transfer schedules are based on settings in the Start of Authority (SOA) record. When ADI zones are used, zone transfers occur when Active Directory replication occurs. However, you can force zone transfers at different times.

Forcing Zone Transfer CommandsComments
Update secondary DNS server.
/zonerefresh
dnscmd server /zonerefresh zone
c:\>dnscmd dc1 /zonerefresh
pearson.pub

Forces a zone transfer from a primary DNS server to a secondary DNS server. You need to specify the server hosting the primary zone and the zone to transfer. In this example, the DC1 is the DNS server and the zone name is pearson.pub.
Update ADI zone data.
/zonereupdatefromds
dnscmd server / zoneupdatefromds
zone
c:\>dnscmd dc1 /zoneupdatefromds
pearson.pub

Forces a zone transfer from directory services (for an ADI zone). This works for any ADI zone, including those hosted on read-only domain controllers (RODC).

Tip

When performing a zone transfer to update an RODC, run the command on a server that is not RODC.
Other -----------------
- Windows Small Business Server 2011 : Deploying SQL Server 2008 R2 for Small Business
- Windows Small Business Server 2011 : Deploying a Second Domain Controller
- Windows Small Business Server 2011 : Deploying a Second Server (part 2) - Performing Post-Installation Tasks - Changing the Computer Name and Joining the Domain
- Windows Small Business Server 2011 : Deploying a Second Server (part 2) - Performing Post-Installation Tasks - Adjusting Time Zone Settings, Configuring Network Settings
- Windows Small Business Server 2011 : Deploying a Second Server (part 1) - Installing a Second Server
- Windows Small Business Server 2011 : Adding a Second Server - Expanding Your Network
- Troubleshooting Windows Home Server 2011 : Troubleshooting Startup - Troubleshooting Startup Using the System Configuration Utility
- Troubleshooting Windows Home Server 2011 : Troubleshooting Device Problems
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 14) - Managing volumes on dynamic disks - Configuring RAID 5
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 13) - Managing volumes on dynamic disks - Configuring RAID 1, Mirroring boot and system volumes
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 12) - Managing volumes on dynamic disks - Creating a simple or spanned volume, Configuring RAID 0
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 11) - Managing GPT disk partitions on basic disks
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 10) - Managing MBR disk partitions on basic disks - Extending partitions, Shrinking partitions
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 9) - Managing MBR disk partitions on basic disks - Formatting a partition, logical drive, or volume, Configuring drive
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 8) - Managing MBR disk partitions on basic disks - Creating partitions and simple volumes
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 7) - Configuring storage - Creating and managing virtual hard disks for Hyper-V, Converting FAT or FAT32 to NTFS, Worki
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 6) - Configuring storage - Using the MBR and GPT partition styles, Using the disk storage types
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 5) - Configuring storage - Using the Disk Management tools, Adding new disks
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 4) - Installing and configuring file services - Configuring Hyper-V
- Managing Windows Server 2012 Storage and File Systems : Storage Management (part 3) - Installing and configuring file services - Meeting performance, capacity, and availability requirements
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us